/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.system;

import com.enation.app.javashop.client.system.HotkeywordClient;
import com.enation.app.javashop.core.client.fallback.system.HotkeywordClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.pagedata.HotKeyword;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zs
 * @version v1.0
 * @Description: 热点关键字client
 * @date 2020-11-17
 * @since v7.2.2
 */
@FeignClient(value = "system-service", fallbackFactory = HotkeywordClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface HotkeywordClientFeignImpl extends HotkeywordClient {

    /**
     * 查询热门关键字
     * @param num
     * @return
     */
    @Override
    @RequestMapping(value = "/client/hot-keyword", method = RequestMethod.GET)
    List<HotKeyword> listByNum(@RequestParam("num") Integer num);


}
